package com.bonc.modules.item.result;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author jinlong
 * @date 2021/8/9
 */
@AllArgsConstructor
@Data
public class ItemChartDataResult {
    private List<String> xAxis;
    private List<Number> dataList;
    private List<Map> pieDataList;
    private String parentNode;

    public ItemChartDataResult(List<String> xAxis, List<Number> dataList) {
        this.xAxis = xAxis;
        this.dataList = dataList;
    }

    public ItemChartDataResult(List<Map> pieDataList, String parentNode) {
        this.pieDataList = pieDataList;
        this.parentNode = parentNode;
    }
}
